package com.pand.model.invoice;

import com.pand.model.BaseObject;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by Gensis on 2017/7/31.
 */
@Entity
@Table(name="BIZ_INVOICE")
@SequenceGenerator(name="seq",sequenceName="SEQ_INVOICE", allocationSize = 1)
public class Invoice extends BaseObject{
    private Long id;
    private String orderNo;
    private String invoiceTitle;
    private String invoiceAddress;
    private Double invoiceAmount;
    private String invoiceContent;
    private String postCode;
    private String receiver;
    private String receiverPhone;
    private String invoiceStatus;
    private Timestamp applyTime;
    private String invoiceRemarks;
    private Long customerId;
    private String identifyNumber;
    private Long paymentId;

    @Id
    @GeneratedValue(generator="seq")
    @Column(name = "ID")
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    @Column(name = "ORDER_NO")
    public String getOrderNo() {
        return orderNo;
    }
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    @Column(name = "INVOICE_TITLE")
    public String getInvoiceTitle() {
        return invoiceTitle;
    }
    public void setInvoiceTitle(String invoiceTitle) {
        this.invoiceTitle = invoiceTitle;
    }
    @Column(name = "INVOICE_ADDRESS")
    public String getInvoiceAddress() {
        return invoiceAddress;
    }
    public void setInvoiceAddress(String invoiceAddress) {
        this.invoiceAddress = invoiceAddress;
    }
    @Column(name = "INVOICE_AMOUNT")
    public Double getInvoiceAmount() {
        return invoiceAmount;
    }
    public void setInvoiceAmount(Double invoiceAmount) {
        this.invoiceAmount = invoiceAmount;
    }
    @Column(name = "INVOICE_CONTENT")
    public String getInvoiceContent() {
        return invoiceContent;
    }
    public void setInvoiceContent(String invoiceContent) {
        this.invoiceContent = invoiceContent;
    }
    @Column(name = "POST_CODE")
    public String getPostCode() {
        return postCode;
    }
    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }
    @Column(name = "RECEIVER")
    public String getReceiver() {
        return receiver;
    }
    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }
    @Column(name = "RECEIVER_PHONE")
    public String getReceiverPhone() {
        return receiverPhone;
    }
    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }
    @Column(name = "INVOICE_STATUS")
    public String getInvoiceStatus() {
        return invoiceStatus;
    }
    public void setInvoiceStatus(String invoiceStatus) {
        this.invoiceStatus = invoiceStatus;
    }

    @Column(name = "customer_id")
    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    @Column(name = "APPLY_TIME")
    public Timestamp getApplyTime() {
        return applyTime;
    }
    public void setApplyTime(Timestamp applyTime) {
        this.applyTime = applyTime;
    }

    @Column(name = "INVOICE_REMARKS")
    public String getInvoiceRemarks() {
        return invoiceRemarks;
    }
    public void setInvoiceRemarks(String invoiceRemarks) {
        this.invoiceRemarks = invoiceRemarks;
    }

    @Column(name = "IDENTIFY_NUMBER")
    public String getIdentifyNumber() {
        return identifyNumber;
    }

    public void setIdentifyNumber(String identifyNumber) {
        this.identifyNumber = identifyNumber;
    }

    @Column(name = "payment_id")
    public Long getPaymentId() {
        return paymentId;
    }
    public void setPaymentId(Long paymentId) {
        this.paymentId = paymentId;
    }
}
